package com.p2p.system.controller;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.p2p.model.vo.CompanybankinfoVo;
import com.p2p.model.vo.SystemaccountflowVo;
import com.p2p.system.common.Result;
import com.p2p.system.entity.Companybankinfo;
import com.p2p.system.entity.Systemaccountflow;
import com.p2p.system.service.CompanybankinfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 公司银行信息表 前端控制器
 * </p>
 *
 * @author 黄旭彬
 * @since 2023-12-17
 */
@CrossOrigin
@RestController
@Api(tags = "公司银行信息表管理接口")
@RequestMapping("/system/companybankinfo")
public class CompanybankinfoController {

    @Autowired
    private CompanybankinfoService companybankinfoService;

    @ApiOperation("系统账户流水分页查询和条件查询")
    @GetMapping("/{page}/{limit}")
    public Result getUserList(
            @PathVariable Long page,
            @PathVariable Long limit,
            CompanybankinfoVo companybankinfoVo

    ){
        Page<Companybankinfo> pageParam = new Page<>(page,limit);
        IPage<Companybankinfo> pageModel1= companybankinfoService.selectPage(pageParam,companybankinfoVo);

        return Result.ok(pageModel1);
    }
}

